package com.top.application.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.top.application.dao.SendMessageEntityMapper;
import com.top.application.entity.SendMessageEntity;
import com.top.application.service.SendMessageService;

@Service
public class SendMessageServiceImpl implements SendMessageService{
	
	@Autowired
	private SendMessageEntityMapper sendMessageEntityMapper;
	
	@Override
	public int delete(Integer id) {
		return sendMessageEntityMapper.delete(id);
	}

	@Override
	public int insert(SendMessageEntity record) {
		return sendMessageEntityMapper.insert(record);
	}

	@Override
	public SendMessageEntity selectById(Integer id) {
		return sendMessageEntityMapper.selectById(id);
	}

	@Override
	public int update(SendMessageEntity record) {
		return sendMessageEntityMapper.update(record);
	}

	@Override
	public SendMessageEntity getTwoMinsCode(String phoneNumber) {
		return sendMessageEntityMapper.getTwoMinsCode(phoneNumber);
	}

}
